import 'package:flutter/material.dart';

class CustomButton extends Padding{

  CustomButton({
    super.key,
    double? bottom,
    required BuildContext context,
    required String text,
    void Function()? onTap
  }) : super(
    padding: EdgeInsets.only(bottom: bottom??20),
    child: GestureDetector(
      onTap: onTap,
      child: Container(
        color: Colors.white,
        height: 50,
        alignment: Alignment.center,
        width: MediaQuery.of(context).size.width,
        child: Text(text??'', style: const TextStyle(fontWeight: FontWeight.w600, fontSize: 15),),
      ),
    )
  );

}